/*
 * @Author: wjc
 * @Date: 2025-02-13 14:52:31
 * @LastEditors: wjc
 * @LastEditTime: 2025-10-28 10:42:51
 * @Description:
 */
import CryptoJS from 'crypto-js'

/**
 * MD5 加密，加入编码 与 PHP 结果一致
 *
 * @param {string} str
 * @returns {string}
 */
export default function md5(str: string) {
  return CryptoJS.MD5(str).toString()
}
